package com.yanqu.road.server.timer.activity;

import com.yanqu.road.server.manger.activity.recycle.ActivityItemRecycleMgr;
import com.yanqu.road.utils.date.DateHelper;
import com.yanqu.road.utils.executor.GeneralTask;

public class ActivityItemRecycleTask extends GeneralTask {
    @Override
    public void doRun() {
        ActivityItemRecycleMgr.checkAndAddNeedRecycleItem();
        //只在 01 - 23 之间回收
        int hours = DateHelper.getHours();
        if (hours == 0) {
            return;
        }
        ActivityItemRecycleMgr.timerRecycle();
    }
}
